((${input$entity} instanceof MobEntity)?((MobEntity) ${input$entity}).getLeashed():false)